package com.denso.workflow.main;


/**
 * Created by lijian on 2017/10/23.
 */
public class Test {

    public static void main(String[] args) {
        String code = "DISC5060020000010091000210125104151120712305152071530815408155092187139-0R020              TB014520-35810D0000025F520 0070095        00000000     ";
        int index = 91;
        int length = 104;
        String res = code.substring(index, length);
        System.out.println(res);


        /*

        String code2 = "TB014520-35810ZTB014520-3581           0000025052";
        String target = "TB014520-3581";

        int a = code2.indexOf(target);
        System.out.println(a);
        int b = target.length();
        System.out.println(code2.substring(a, a + b));

        String dateStr = "2018-09-23";
        String[] strs = dateStr.split("-");
        System.out.println(Integer.parseInt(strs[0]));
        System.out.println(Integer.parseInt(strs[1]));
        System.out.println(Integer.parseInt(strs[2]));
        */
    }
}
